package demo02;

public class MyInterface <Q>implements Interface<Q> {

    @Override
    public void method(Q q) {

        System.out.println(q);
    }
    private   Q name;
    private     Q age;

    public Q getName() {
        return name;
    }

    public void setName(Q name) {
        this.name = name;
    }

    public Q getAge() {
        return age;
    }

    public void setAge(Q age) {
        this.age = age;
    }
}
